<?php

class SearchController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
    }

    public function indexAction()
    {
        $country = $this->getRequest()->getParam('c', 'MC');
        $userModel = new Application_Model_UserDetail();
        $listNewMember = $userModel->getNewMember($country);
        $listGoingViral = $userModel->getGoingViral($country);
        $listTopMember = $userModel->getTopMember($country);

        $this->view->listNewMember = $listNewMember;
        $this->view->listGoingViral = $listGoingViral;
        $this->view->listTopMember = $listTopMember;
        $this->view->countryCode = $country;

        //$this->render('index/index');
        $this->renderScript('index/index.phtml');
    }
}

